const mongoose = require("mongoose");

const Schema = mongoose.Schema;

const user = new Schema({
  userName: {
    type: String,
    required: true,
    unique: true
  },
  password: {
    type: String,
    required: true
  },
  registerTime: {
    type: Date,
    default: Date.now
  }
})

module.exports = mongoose.model("user",user)